<template>
  <el-card class="customer-add-page">
    <div class="customer-add-page__body">
      <el-form label-position="left" label-width="120px" size="small">
        <el-divider content-position="left">基础信息</el-divider>
        <el-row :gutter="2">
          <el-col :span="8" :offset="2">
            <el-form-item label="企业名称">
              <el-input v-model="companyInfo.name"></el-input>
            </el-form-item>
          </el-col>
          <el-col :span="8" :push="2" :pull="2">
            <el-form-item label="地址">
              <el-input v-model="companyInfo.address"></el-input>
            </el-form-item>
          </el-col>
        </el-row>
        <el-row v-if="user.role_id == 1">
          <el-col :span="8" :offset="2">
            <el-form-item label="联系人">
              <el-input v-model="companyInfo.contact_person"></el-input>
            </el-form-item>
          </el-col>
          <el-col :span="8" :push="2" :pull="2">
            <el-form-item label="联系电话">
              <el-input v-model="companyInfo.contact_phone"></el-input>
            </el-form-item>
          </el-col>
        </el-row>
        <div class="footer">
          <el-button type="primary" @click="onSubmitEnterpriseInfo">提交</el-button>
        </div>

        <el-divider content-position="left">挂靠信息</el-divider>
        <el-table :data="certificates" stripe size="mini">
          <el-table-column label="客户姓名" prop="user_info.name"></el-table-column>
          <el-table-column label="证书类别" prop="first_category"></el-table-column>
          <el-table-column label="证书类型" prop="second_category"></el-table-column>
          <el-table-column label="证书编码" prop="cert_number"></el-table-column>
          <el-table-column label="挂靠日期" prop="issue_date"></el-table-column>
          <el-table-column label="到期时间" prop="expire_date"></el-table-column>
          <el-table-column label="提报人" prop="agent_name"></el-table-column>
        </el-table>
      </el-form>
    </div>
  </el-card>
</template>

<script>
import index from './index.js'

export default index
</script>
<style scoped lang="less">
@import 'index';
</style>
